import axios from "../../axios.js"
import qs from "qs"

const orders = {
    /*管理员 */
    //获取订单
    getOrders(params) {
        return axios({
            url: "/orders/getOrders",
            method: "get",
            params,
            paramsSerializer: function (params) {
                return qs.stringify(params, { arrayFormat: "indices" });
            },
        })
    },
    //删除订单
    deleteOrders(data) {
        return axios({
            url: "/orders/deleteOrders",
            method: "post",
            data
        })
    }
}

export default orders